package it.low.game.client.gui.panel;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;

import javax.swing.JPanel;
import javax.swing.border.Border;
import javax.swing.border.EtchedBorder;

public class GamePanel extends JPanel {	
	
	Border gameBorder = new EtchedBorder(EtchedBorder.RAISED, Color.DARK_GRAY, Color.BLACK);
	
	private GameBoardPanel gameBoardPanel = null;
	
	public GamePanel(Point panelLocation){
		
		this.setLayout(new BorderLayout());
		this.setBackground(Color.GRAY);
		this.setBorder(gameBorder);
		
		// CREATE & ADD GAME MAP PANEL
		this.gameBoardPanel = new GameBoardPanel(panelLocation);
		this.add(gameBoardPanel);			
	}
		
	public void paintComponent(Graphics g) {
		gameBoardPanel.paintComponent(g);	
	}

}
